package bookManager;

abstract public class User {
    private int userId;
    private String name;
    private String password;

    IOperation[] operations;

    public void doOperation(int choice){
        operations[choice].work();
    }

    public abstract int menu();

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
